import request from '@/router/axios';

export const getList = (current, size, params) => {
  return request({
    url: '/api/rb-oem/oem/ticketRecord/list',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}

export const statistics = (params) => {
  return request({
    url: '/api/rb-oem/oem/ticketRecord/statistics',
    method: 'get',
    params: {
      ...params
    }
  })
}

export const getTradeList = (current, size, params) => {
  return request({
    url: '/api/rb-oem/oem/ticketRecord/tradeList',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}

export const tradeStatistics = (params) => {
  return request({
    url: '/api/rb-oem/oem/ticketRecord/tradeStatistics',
    method: 'get',
    params: {
      ...params
    }
  })
}

export const getExport = (params) => {
  return request({
    url: '/api/rb-oem/oem/ticketRecord/export',
    method: 'get',
    params: {
      ...params,
    }
  })
}

export const getExportTrade = (params) => {
  return request({
    url: '/api/rb-oem/oem/ticketRecord/exportTrade',
    method: 'get',
    params: {
      ...params,
    }
  })
}